<template>
  <div>
    <h1>{{ msg }}</h1>
    {{$route.params}}
  </div>
</template>

<script>
export default {
  name: 'params',
  data () {
    return {
      msg: 'Welcome to params'
    }
  },
  beforeRouteEnter: (to,from,next)=>{
    console.log("准备进入params路由模板");
    next();
  },
  beforeRouteLeave: (to,from,next)=>{
    console.log("准备离开params路由模版");
    next();
  }
}
</script>


<style scoped>

</style>
